package com.lwm.base;

/**
 * @author liweimin
 * @date 2020/9/23 16:02
 * @description
 *  public
 *  protected
 *  default
 *  private
 */
public class Teacher extends Person {
    private String teaId;
    private String name = "dasd";
    public void teaching(){}

    public Teacher() {
        super();
    }

    public Teacher(String name, int age, String gender, String teaId) {
        super(name, age, gender);
        this.teaId = teaId;
    }

    public Teacher(String name, int age, String gender) {
        super(name, age, gender);
    }
public void test(String name){
    System.out.println(name);
    System.out.println(this.name);

}
    public static void main(String[] args) {
        Object o = new Teacher();
        Object o1 = new Object();

        System.out.println(o instanceof Teacher);
        System.out.println(o instanceof Object);
        System.out.println(o1 instanceof Teacher);
    }
}
